package com.example.springboot.redis.entity;

import java.io.Serializable;

/**
 * @desc
 * @Author wangsh
 * @date 2018/6/4 21:33
 */
public class User implements Serializable {

	private String id;
	private String userName;
	private String password;
	private int age;

	public User(String id, String userName, String password, int age) {
		this.id = id;
		this.userName = userName;
		this.password = password;
		this.age = age;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	@Override
	public String toString() {
		return "User{" +
				"id='" + id + '\'' +
				", userName='" + userName + '\'' +
				", password='" + password + '\'' +
				", age=" + age +
				'}';
	}


}
